package com.software.levelupserver.service.impl;

import com.software.levelupserver.entity.Label;

import com.software.levelupserver.mappers.LabelMapper;
import com.software.levelupserver.service.LabelService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;

@Service
public class LabelServiceImpl implements LabelService {
    @Resource
    private LabelMapper labelMapper;

    /**
     * 获取当天开始的所属用户的任务
     * @return
     */

    @Override
    public List<Label> selectAllLabels() {
        List<Label> labels = labelMapper.selectAllLabels();
        if (labels == null) {
            return new ArrayList<>();
        }
        return labels;
    }
}
